package crawler.server.dispatch.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/crawler/client")
public class ClientController {
  
	@PostMapping(value = "/info")
    public String info(HttpServletRequest request, HttpServletResponse response) {  
        return "info";  
    } 
    
	@PostMapping(value = "/task")
    public String task(HttpServletRequest request, HttpServletResponse response) {  
        return "task";  
    } 
    
    
	@PostMapping(value = "/data")
    public String data(HttpServletRequest request, HttpServletResponse response) {  
        return "data";  
    } 
	
	@PostMapping(value = "/download")
    public String download(HttpServletRequest request, HttpServletResponse response) {  
        return "download";  
    }   
	
	@PostMapping(value = "/account")
    public String account(HttpServletRequest request, HttpServletResponse response) {  
        return "account";  
    }    
	
	
	@PostMapping(value = "/proxy")
    public String proxy(HttpServletRequest request, HttpServletResponse response) {  
        return "proxy";  
    }    
}
